package pojo;


import java.io.Serializable;

public class Card implements Serializable {

    private long id;
    private double money;
    private double discountRate;
    private String type;
    private String username;
    private String tel;
    private String idCard;
    private long isUseful;
    private String comment;


    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }


    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }


    public double getDiscountRate() {
        return discountRate;
    }

    public void setDiscountRate(double discountRate) {
        this.discountRate = discountRate;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }


    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }


    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }


    public long getIsUseful() {
        return isUseful;
    }

    public void setIsUseful(long isUseful) {
        this.isUseful = isUseful;
    }


    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "会员卡或储蓄卡信息\n" +
                "序号=" + id +
                ", 余额=" + money +
                ", 折扣率=" + discountRate + "\n" +
                ", 类型='" + type + '\'' +
                ", 用户名='" + username + '\'' +
                ", 电话='" + tel + '\'' + "\n" +
                ", 身份证号='" + idCard + '\'' +
                ", 是否可以使用=" + isUseful +
                ", 停用备注='" + comment + '\'' +
                '\n';
    }
}
